package com.vdong.interactive.course.entity.po;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Objects;

@Data
public class GoodsPeddlePagePO implements Serializable {
    /**
     * 分销商品ID
     */
    private Long peddleGoodsId;

    /**
     * 审核状态【0：待审核 1：通过 2：未通过 3:违规 4：已审核】
     */
    private Integer checkState;

    /**
     * 上架状态【1：上架 0：下架】
     */
    private Integer openState;

    /**
     * 分类类型【0：课程】
     */
    private Integer classifyType;

    /**
     * 关键字
     */
    private String keyword;

    /**
     * 是否首页展示【0：不展示 1：展示】
     */
    private Integer isShow;

    /**
     * 一级分类ID
     */
    private Long catagoryId;

    /**
     * 二级级分类ID
     */
    private Long typeId;

    /**
     * 页码
     */
    private Integer page;

    /**
     * 条数
     */
    private Integer pageSize;

    public Integer getCheckState() {
        if (!Objects.isNull(checkState) && checkState.compareTo(-1) != 0){return checkState;}
        return null;
    }

    public void setCheckState(Integer checkState) {
        this.checkState = checkState;
    }

    public Integer getOpenState() {
        if (!Objects.isNull(openState) && openState.compareTo(-1) != 0){return openState;}
        return null;
    }

    public void setOpenState(Integer openState) {
        this.openState = openState;
    }

    public Integer getClassifyType() {
        if (!Objects.isNull(classifyType) && classifyType.compareTo(-1) != 0){return classifyType;}
        return null;
    }

    public void setClassifyType(Integer classifyType) {
        this.classifyType = classifyType;
    }
}
